<?php

/**
 * Description of Singleton
 *
 * @author MikE
 */
class Singleton {

	protected static $_instances = array();

	protected function __construct() {

	}

	public static function getInstance($class = __CLASS__) {
		if (!isset(self::$_instances[$class])) self::$_instances[$class] = new $class();

		return self::$_instances[$class];
	}

}